package com.example.smartstart.mapper;

import com.example.smartstart.entity.MapPoint;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.smartstart.entity.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author dlx
 * @since 2024-07-22
 */
@Mapper
@Repository
public interface MapPointMapper extends BaseMapper<MapPoint> {

    Integer queryTotal(MapPoint mapPoint);

    List<MapPoint> listByPage(MapPoint mapPoint);

    Integer adminQueryTotal(MapPoint mapPoint);

    List<MapPoint> adminListByPage(MapPoint mapPoint);

    @Select("select * from map_point where id = #{mapPointId}")
    MapPoint getMapPointById(Integer mapPointId);
}
